package org.come.control;

import java.math.BigDecimal;
import java.util.List;

import javax.swing.JLabel;

import com.tool.PanelDisplay.PetPanelShow;
import org.apache.commons.lang.StringUtils;
import org.come.Frame.*;
import org.come.Jpanel.TestPetJpanel;
import org.come.Jpanel.ZhuJpanel;
import org.come.MountShouHu.ShouhuPackJframe;
import org.come.action.FromServerAction;
import org.come.baitan.GouMaiJpanel;
import org.come.bean.LoginResult;
import org.come.bean.QualityClBean;
import org.come.bean.UseCardBean;
import org.come.entity.*;
import org.come.lianhua.AutoMaticRefiningJframe;
import org.come.model.Lingbao;
import org.come.model.aCard;
import org.come.mouslisten.ChosePetSkillsMouslisten;
import org.come.mouslisten.PetAddPointMouslisten;
import org.come.summonequip.JframeSummonEquipMain;
import org.come.until.AccessSuitMsgUntil;
import org.come.until.CutButtonImage;
import org.come.until.ExpIncreaseUntil;
import org.come.until.FormsManagement;
import org.come.until.GoodsListFromServerUntil;
import org.come.until.GsonUtil;
import org.come.until.UserData;
import org.come.until.UserMessUntil;

import com.tool.ModerateTask.Hero;
import com.tool.Stall.AssetUpdate;
import com.tool.image.ImageMixDeal;
import com.tool.pet.PetProperty;
import com.tool.role.RoleData;
import com.tool.role.RoleLingFa;
import com.tool.role.RoleProperty;
import com.tool.time.TimeLimit;
import org.come.xingpan.JframeXingBackMain;
import org.come.xingpan.JframeXingCardMain;
import org.come.xingpan.JpanelXingBackMain;
import org.come.xingpan.JpanelXingCardMain;
import io.netty.util.internal.StringUtil;
import org.come.xinyuan.SkillMainFrame5;
import org.wing.panel.LHMainFrame;
import org.wing.panel.LHMainPanel;

public class AssetControl implements FromServerAction {
    private long i = -111;

    @Override
    public void controlMessFromServer(String mes, String type) {
        // TODO Auto-generated method stub
        AssetUpdate assetUpdate = GsonUtil.getGsonUtil().getgson().fromJson(mes, AssetUpdate.class);
        if (i != -111 && assetUpdate.getI() == i) {
            return;
        }
        i = assetUpdate.getI();
        asset(assetUpdate);
        if (FormsManagement.getInternalForm2(122) != null) {
            JpanelXingCardMain skillMainPanel = JframeXingCardMain.getJframeSummonEquipMain().getJpanelXingCardMain();
            skillMainPanel.changeBigMenuLeftView1(skillMainPanel.getBigType());
        }
        if (FormsManagement.getInternalForm2(121) != null) {
            JpanelXingBackMain skillMainPanel = JframeXingBackMain.getJframeSummonEquipMain().getJpanelXingBackMain();
            skillMainPanel.viewCultivateBtn();
        }
    }

    public static void asset(AssetUpdate assetUpdate) {
        if (assetUpdate == null) {
            return;
        }
        if (assetUpdate.getType()==655){
            LoginResult loginResult = RoleData.getRoleData().getLoginResult();
            long p = Long.parseLong(assetUpdate.getData().substring(2));
            loginResult.setGold(new BigDecimal(loginResult.getGold().longValue() + p));
            Goodstable goodstable= GouMaiJpanel.getGoodType(assetUpdate.getGoods().get(0).getGoodsid().longValue());
            if (goodstable!=null){
                goodstable.setUsetime(goodstable.getUsetime()-Integer.parseInt(assetUpdate.getSceneMsg()));
                if(goodstable.getUsetime()<=0){
                    GoodsListFromServerUntil.Deletebiaoid(goodstable.getRgid());
                }
            }
            ZhuFrame.getZhuJpanel().addPrompt2(assetUpdate.getMsg());
            return;
        }
        if (assetUpdate.getData() != null) {
            LoginResult loginResult = RoleData.getRoleData().getLoginResult();
            String[] vs = assetUpdate.getData().split("\\|");
            if (assetUpdate.getType()==2255){
                loginResult.setShouhu(loginResult.getShouhu()+Integer.parseInt(assetUpdate.getData()));
                ZhuFrame.getZhuJpanel().addPrompt2(assetUpdate.getMsg());
                return;
            }
            for (int i = 0; i < vs.length; i++) {
                if (vs[i].startsWith("D")) {
                    long p = Long.parseLong(vs[i].substring(2));
                    loginResult.setGold(new BigDecimal(loginResult.getGold().longValue() + p));
                }
                if (vs[i].startsWith("#DelSid")) {
                    String sid = vs[i].substring(8);
                    for (RoleSummoning roleSummoning : UserMessUntil.getPetListTable()) {
                        if (roleSummoning.getSid().toString().equals(sid)) {
                            UserMessUntil.getPetListTable().remove(roleSummoning);
                            UserMessUntil.getDepositPetListTable().add(roleSummoning);
                            DepositListJframe.getDepositListJframe().getDepositListJpanel().init(RoleData.getRoleData().getDepositBbName());
                            break;
                        }
                    }
                    if (FormsManagement.getframe(6).isVisible()) {
                        PetPanelShow.Show1();
                    }
                    break;
                } else if (vs[i].startsWith("LHLHVALUE")) {
                    String v = vs[i].replace("LHLHVALUE=", "");
                    RoleData.getRoleData().getLoginResult().setLianghaoValue(v);
                    if (FormsManagement.getframe(866).isVisible()) {
                        // 刷新翅膀界面
                        LHMainPanel lhMainPanel = LHMainFrame.LHMainFrame().getLhMainPanel();
                        String[] split = v.split("@");
                        lhMainPanel.changeChooseWingGoods(null, Integer.parseInt(split[0]));
                    }
                    RoleProperty.getRoleProperty().equipWearOff();
                    QualityClBean qualityClBean = new QualityClBean();
                    qualityClBean.setNewAttr(RoleData.getRoleData().getLoginResult().getLianghaoValue());
                    AutoMaticRefiningJframe.getAssistantJframe().getAssistantJpanel().detectionProperties(qualityClBean);
                    return;
//                    ZhuFrame.getZhuJpanel().addPrompt("炼化成功#46");
                } else if (vs[i].startsWith("#retrieve")) {
                    String sid = vs[i].substring(10);
                    for (RoleSummoning roleSummoning : UserMessUntil.getDepositPetListTable()) {
                        if (roleSummoning.getSid().toString().equals(sid)) {
                            UserMessUntil.getPetListTable().add(roleSummoning);
                            UserMessUntil.getDepositPetListTable().remove(roleSummoning);
                            DepositListJframe.getDepositListJframe().getDepositListJpanel().init(RoleData.getRoleData().getDepositBbName());
                            break;
                        }
                    }
//                    if (FormsManagement.getframe(6).isVisible()) {
                    PetPanelShow.Show1();
//                    }
                    break;
                } else if (vs[i].startsWith("X")) {
                    long p = Long.parseLong(vs[i].substring(2));
                    loginResult.setCodecard(new BigDecimal(loginResult.getCodecard().longValue() + p));
                    GoodDetailedJframe.getGoodDetailedJframe().getGoodDetailedJpanel().getYonghuXianyu().setText(loginResult.getCodecard() + "");
                    TaobaoCourtMainJframe.getTaobaoCourtJframe().getTaobaoCourtMainJpanel().getJadeNum().setText(loginResult.getCodecard() + "");
                } else if (vs[i].startsWith("S")) {
                    long p = Long.parseLong(vs[i].substring(2));
                    loginResult.setSavegold(new BigDecimal(loginResult.getSavegold().longValue() + p));
                } else if (vs[i].startsWith("C")) {
                    long p = Long.parseLong(vs[i].substring(2));
                    loginResult.setMoney((int) (loginResult.getMoney() + p));
                    GoodDetailedJframe.getGoodDetailedJframe().getGoodDetailedJpanel().getYonghuXianyu().setText(loginResult.getMoney() + "");
                }else if (vs[i].startsWith("H")){
                    long p = Long.parseLong(vs[i].substring(2));
                    loginResult.setMoney((int) (loginResult.getMoney() + p));
                    int m=loginResult.getMoney();
                    TaobaoCourtMainJframe.getTaobaoCourtJframe().getTaobaoCourtMainJpanel().getMoney().setText(loginResult.getMoney()+"");
                    GoodDetailedJframe.getGoodDetailedJframe().getGoodDetailedJpanel().getYonghuXianyu().setText(loginResult.getMoney() + "");
                    ZhuFrame.getZhuJpanel().addPrompt2("你获得了"+p+"充值积分！");
                    return;
                }else if (vs[i].startsWith("R")) {
                    ExpIncreaseUntil.RoleExp(loginResult, vs[i]);
                } else if (vs[i].startsWith("P")) {
                    ExpIncreaseUntil.PetExp(vs[i]);
                } else if (vs[i].startsWith("M")) {
                    ExpIncreaseUntil.MountExp(vs[i]);
                }else if(vs[i].startsWith("LH")){
                    String [] upMsg = vs[i].split("=");
                    if(upMsg.length>1 && StringUtils.isNotEmpty(upMsg[1])){
                        LiangHaoInfo liangHaoInfo = GsonUtil.getGsonUtil().getgson().fromJson(upMsg[1], LiangHaoInfo.class);
                        loginResult.setLiangHao(liangHaoInfo.getLianghao());
                        if(loginResult.getLianghaotype()==null || loginResult.getLianghaotype()<=0){
                            loginResult.setLianghaotype(liangHaoInfo.getType());
                        }
                        loginResult.setLianghaoexpire(liangHaoInfo.getExpTime());
                        loginResult.setContinueprice(liangHaoInfo.getContinueprice());
                        Teststatejframe.getTeststatejframe().getTeststateJpanel().getLabappeleid().setText("");
                    }
                } else if (vs[i].startsWith("L")) {
                    ExpIncreaseUntil.LingExp(vs[i]);
                } else if (vs[i].startsWith("TTJF")) {
                    String p = assetUpdate.getData().substring(5);
                    loginResult.setScore(p);
                } else if (vs[i].startsWith("G")) {
                    String[] vss = vs[i].split("=");
                    if (vss.length == 2) {
                        BigDecimal id = new BigDecimal(vss[0].substring(1));
                        int sum = Integer.parseInt(vss[1]);
                        GoodsListFromServerUntil.addGood(id, sum);
                    } else if (vss.length == 4) {
                        ExpIncreaseUntil.NeiDanExp(vss);
                    }
                } else if (vs[i].startsWith("T")) {
                    MsgJframe.getJframe().getJapnel().texiao(vs[i].substring(1));
                } else if (vs[i].startsWith("B")) {
                    long p = Long.parseLong(vs[i].substring(2));
                    loginResult.setContribution(new BigDecimal(loginResult.getContribution().longValue() + p));
                } else if (vs[i].startsWith("SG")) {
                    long p = Long.parseLong(vs[i].substring(2));
                    loginResult.setShigongx(new BigDecimal(loginResult.getSavegold().longValue() + p));
                } else if (vs[i].startsWith("K")) {
                    long p = Long.parseLong(vs[i].substring(2));
                    loginResult.setPkrecord(new BigDecimal(loginResult.getPkrecord().longValue() + p));
                } else if (vs[i].startsWith("E")) {
                    String[] vss = vs[i].split("=");
                    vss[0] = vss[0].substring(1);
                    loginResult.setFGExtraPoint(vss[0], Integer.parseInt(vss[1]));
                    //判断刷新界面
                    if (FormsManagement.getInternalForm3(54) != null) {
                        FactionAngelJframe.getFactionAngelJframe().getFactionAngelJpanel().showMenuMessage();
                    }
                    if (FormsManagement.getInternalForm3(106) != null) {
                        FactionAngelPracticeJframe.getFactionAngelPracticeJframe().getFactionAngelPracticeJpanel().showMessage();
                    }
                } else if (vs[i].startsWith("N")) {
                    String[] vss = vs[i].split("=");
                    BigDecimal id = new BigDecimal(vss[0].substring(5));
                    if (vss[0].startsWith("NSKIN")) {
                        NPCJfram.getNpcJfram().getNpcjpanel().whetherChange(id);
                    } else if (vss[0].startsWith("NBASE")) {
                        int sum = Integer.parseInt(vss[1]);
                        NPCJfram.getNpcJfram().getNpcjpanel().selectValue(id, sum);
                    }
                } else if (vs[i].startsWith("偷钱")) {
                    String[] vss = vs[i].split("=");
                    long p = Long.parseLong(vss[1]);
                    NPCJfram.getNpcJfram().getNpcjpanel().taskend("和你开个小小的玩笑而已,何必动怒,这份礼物送你,你得到了" + p + "金钱");
                } else if (vs[i].startsWith("击杀")) {
                    loginResult.setKill(UserData.Splice(loginResult.getKill(), vs[i], 5));
                } else {
                    loginResult.setScore(UserData.Splice(loginResult.getScore(), vs[i], 2));
                }
            }
        }
        if (assetUpdate.getVip() != null) {
            LoginResult loginResult = RoleData.getRoleData().getLoginResult();
            loginResult.setVipget(assetUpdate.getVip());
        }
        if (assetUpdate.getSceneMsg() != null) {
            ImageMixDeal.upScene(assetUpdate.getSceneMsg());
        }
        // 物品
        List<Goodstable> goods = assetUpdate.getGoods();
        if (goods != null) {
            for (int i = 0; i < goods.size(); i++) {
                GoodsListFromServerUntil.addGood(goods.get(i));
                if ((goods.get(i).getType() == 511 || goods.get(i).getType() == 510 || goods.get(i).getType() == 512)
                        && AutoMaticRefiningJframe.getAssistantJframe().getAssistantJpanel().getDisplaymodetext().getText().equals("兽装重洗属性")
                        && AutoMaticRefiningJframe.getAssistantJframe().getAssistantJpanel().getStart().getText().equals("停止")) {
                    AutoMaticRefiningJframe.getAssistantJframe().getAssistantJpanel().petShidetectionPropertiesAttr((Goodstable) goods.get(i));
                }
                if (assetUpdate.getData() != null && assetUpdate.getData().contains("TTJF")) {
                    ZhuFrame.getZhuJpanel().addPrompt2("你获得了#R" + goods.get(i).getGoodsname() + "#89#89");
                }
                if (goods.get(i).getType()==2255){
                    ShouhuPackJframe.getShouhuPackJframe().getShouhuPackJpanel().getGoodstableList().add(goods.get(i));
                    ShouhuPackJframe.getShouhuPackJframe().getShouhuPackJpanel().updata();
                }
            }
        }
        LoginResult loginResult = RoleData.getRoleData().getLoginResult();
        // 添加的召唤兽
        List<RoleSummoning> pets = assetUpdate.getPets();
        if (pets != null && pets.size() != 0) {
            // //将召唤兽信息存储在静态中
            boolean is = false;
            s:
            for (int i = 0; i < pets.size(); i++) {
                RoleSummoning pet = pets.get(i);
                if (pet.getRoleid() != null && pet.getBasishp() == 0) {
                    int[] petvalue = PetProperty.getPetHMASp(pet);
                    pet.setBasishp(petvalue[0]);
                    pet.setBasismp(petvalue[1]);
                }
                for (int j = 0; j < UserMessUntil.getPetListTable().size(); j++) {
                    RoleSummoning pet2 = UserMessUntil.getPetListTable().get(j);
                    if (pet.getSid().compareTo(pet2.getSid()) == 0) {
                        if (pet.getRoleid() != null) {
                            UserMessUntil.getPetListTable().set(j, pet);
                        } else {
                            is = true;
                            UserMessUntil.getPetListTable().remove(j);
                        }
                        if (UserMessUntil.getChosePetMes() != null
                                && UserMessUntil.getChosePetMes().getSid().compareTo(pet.getSid()) == 0) {
                            if (pet.getRoleid() != null) {
                                UserMessUntil.setChosePetMes(pet);
                                PetAddPointMouslisten.showPetValue();
                                if (FormsManagement.getframe(18).isVisible()) {// 刷新召唤兽技能面板
                                    ChosePetSkillsMouslisten.refreshPetSkills();
                                }
                                if (FormsManagement.getframe(688).isVisible()) {// 刷新心猿面板
                                    SkillMainFrame5.getSkillMainFrame().getSkillMainPanel().copyOfSkillTYCPanel.changeBtnPanel();
                                    if (FormsManagement.getframe(58).isVisible()) {
                                        PetProperty.ShowQl(UserMessUntil.getChosePetMes());
                                    }
                                }
                            } else {
                                UserMessUntil.setChosePetMes(null);
                            }
                        }
                        continue s;
                    }
                }
                is = true;
                UserMessUntil.getPetListTable().add(pets.get(i));
            }
            if (is) {// 将召唤兽信息放入到列表中
                TestPetJpanel.showListModel(UserMessUntil.getPetListTable(), RoleData.getRoleData().getLoginResult().getSummoning_id());
                ZhuFrame.getZhuJpanel().addPrompt2(assetUpdate.getMsg()) ;//葫芦娃
            }
        }
        // 添加的灵宝
        List<Lingbao> lingbaos = assetUpdate.getLingbaos();
        if (lingbaos != null) {
            for (int i = 0; i < lingbaos.size(); i++) {
                RoleLingFa.getRoleLingFa().addlingfa(lingbaos.get(i));
            }
        }
        /** 坐骑 */
        List<Mount> mounts = assetUpdate.getMounts();
        if (mounts != null) {
            s:
            for (int i = 0; i < mounts.size(); i++) {
                Mount mount = mounts.get(i);
                for (int j = 0; j < ZhuJpanel.getListMount().size(); j++) {
                    Mount mount2 = ZhuJpanel.getListMount().get(j);
                    if (mount.getMid().compareTo(mount2.getMid()) == 0) {
                        ZhuJpanel.getListMount().set(j, mount);
                        ExpIncreaseUntil.showMountValue(mount);// 刷新坐骑面板
                        continue s;
                    }
                }
                ZhuJpanel.getListMount().add(mount);
            }
        }
        /**飞行器*/
        List<Fly> flys = assetUpdate.getFlys();
        if (flys != null) {
            s:
            for (int i = 0; i < flys.size(); i++) {

                Fly fly = flys.get(i);
                for (int j = 0; j < ZhuJpanel.getListFly().size(); j++) {
                    Fly fly2 = ZhuJpanel.getListFly().get(j);
                    if (fly.getMid().compareTo(fly2.getMid()) == 0) {
                        ZhuJpanel.getListFly().set(j, fly);
                        ExpIncreaseUntil.ShouFlyValue(fly);
                        continue s;
                    }
                }
                ZhuJpanel.getListFly().add(fly);
            }
        }
        /** 孩子 */
        List<Baby> babys = assetUpdate.getBabys();
        if (babys != null) {
            boolean is = false;
            BigDecimal big = RoleData.getRoleData().getLoginResult().getBabyId();
            if (big == null) {
                big = new BigDecimal(-1);
            }
            s:
            for (int i = 0; i < babys.size(); i++) {
                Baby baby = babys.get(i);
                for (int j = 0; j < UserMessUntil.getMyListBaby().size(); j++) {
                    Baby baby2 = UserMessUntil.getMyListBaby().get(j);
                    if (baby.getBabyid().compareTo(baby2.getBabyid()) == 0) {
                        UserMessUntil.getMyListBaby().set(j, baby);
                        if (big.compareTo(baby.getBabyid()) == 0) {
                            RoleProperty.ResetBaby(baby);
                        }
                        if (FormsManagement.getframe(1).isVisible()) {
                            TestChildJframe.getTestChildJframe().getTestChildJpanel().ShowBaby(baby);
                        }
                        continue s;
                    }
                }
                is = true;
                UserMessUntil.getMyListBaby().add(baby);
            }
            if (is) {
                BabyControl.babyinit(UserMessUntil.getMyListBaby());
            }
        }
        // 修改的玉符
        List<PartJade> jades = assetUpdate.getJades();
        if (jades != null) {
            for (int i = 0; i < jades.size(); i++) {
                PartJade jade = jades.get(i);
                RoleData.getRoleData().getPackRecord().setPartJade(jade);
                AccessSuitMsgUntil.refreshJadeShow(jade);
            }
        }
        // 修改伙伴
        List<Pal> pals = assetUpdate.getPals();
        if (pals != null) {
            for (int i = 0; i < pals.size(); i++) {
                RoleData.getRoleData().addPal(pals.get(i));
            }
            if (FormsManagement.getInternalForm2(105) != null) {
                if (FormsManagement.getframe(105).isVisible()) {
                    PartnerJframe.getPartnerJframe().getPartnerMainJpanel().refreshPals(pals);
                }
            }
        }
        if (assetUpdate.getUseCard() != null) {
            UseCardBean cardBean = assetUpdate.getUseCard();
            TimeLimit.getLimits().addLimit(cardBean.getName(), cardBean.getType(), cardBean.getSkin(),
                    cardBean.getValue(), cardBean.getTime());
            // 刷新面板
            if (cardBean.getlCard() != null) {
                RoleData.getRoleData().getPackRecord().setlCard(cardBean.getlCard());
                String[] split = cardBean.getlCard().split("\\|");
                JLabel[] commonLab = SeventyTwoChangesJframe.getSeventyTwoChangesJframe().getSeventyTwoChangesJpanel()
                        .getCommonLab();
                for (int i = 0; i < commonLab.length; i++) {
                    if ((i + 1) <= split.length) {
                        aCard card = UserMessUntil.getACard(Integer.decode(split[i]));
                        if (card == null) {
                            commonLab[i].setIcon(null);
                            commonLab[i].setName(null);
                            continue;
                        }
                        commonLab[i].setIcon(CutButtonImage.getImage("img/head/" + card.getSkin() + ".png", 50, 50));
                        commonLab[i].setName(split[i]);
                    } else {
                        commonLab[i].setIcon(null);
                        commonLab[i].setName(null);
                    }
                }
            }
        }
        /**修改帮派抗性*/
        if (assetUpdate.getResistance() != null) {
            RoleData.getRoleData().getLoginResult().setResistance(!"".equals(assetUpdate.getResistance()) ? assetUpdate.getResistance() : null);
            //刷新帮派抗性，同装备属性
            RoleProperty.ResetBp();
            FactionAngelJframe.getFactionAngelJframe().getFactionAngelJpanel().showMenuMessage();
        }
        if (assetUpdate.getTask() != null) {
            Hero.getHero().addTask(assetUpdate.getTask());
        }
        // 判断提示
        if (assetUpdate.getType() >= 21 && assetUpdate.getType() < 30) {
            String msg = assetUpdate.getMsg();
            if (msg != null) {
                String[] vs = msg.split("\\|");
                for (int i = 0; i < vs.length; i++) {
                    if (StringUtil.isNullOrEmpty(vs[i])) {
                        continue;
                    }
                    if (vs[i].equals("重悟技能失败")) {
                        JframeSummonEquipMain.getJframeSummonEquipMain().getJpanelSummonEquipMain().getAckBtn().nochoose(null);
                    }
                    ZhuFrame.getZhuJpanel().addPrompt2(vs[i]);
                }
            }
            if (assetUpdate.getType() == 26) {
                TaobaoCourtMainJframe.getTaobaoCourtJframe().getTaobaoCourtMainJpanel().getTaobaoCourtCardJpanel()
                        .getVipShopJpanel().refreshPanel();
            } else if (assetUpdate.getType() == 27) {
                EverydayRechargeJframe.getEverydayRechargeJframe().getEverydayRechargeJpanel().refreshPanel();
            } else if (assetUpdate.getType() == 28) {
                ContinuousRechargeJframe.getContinuousRechargeJframe().getContinuousRechargeJpanel().refreshPanel();
            }
        } else if (assetUpdate.getType() == 30) {
            String msg = assetUpdate.getMsg();
            if (msg != null) {
                String[] vs = msg.split("\\|");
                for (int i = 0; i < vs.length; i++) {
                    ZhuFrame.getZhuJpanel().addPrompt2("你获得了" + vs[i]);
                }
            }
            ImpactGradeJframe.getImpactGradeJframe().getImpactGradeJpanel().refreshPanel();
        }else if (assetUpdate.getType() == 31) {
            String msg = assetUpdate.getData();
            if (msg != null) {
                String[] split = msg.split("=");
                ZhuFrame.getZhuJpanel().addPrompt2("你获得了" + split[1] + split[0]);

//                RoleData.getRoleData().getLoginResult().setScore(UserData.Splice(RoleData.getRoleData().getLoginResult().getScore(), "帮战积分=" + split[1], 2));
            }
        }else {
            String msg = assetUpdate.msg();
            if (msg != null) {
                ZhuFrame.getZhuJpanel().addPrompt2(msg);
            }
        }
        //修复天梯胜场数据刷新
        if (assetUpdate.getTtVictory() != null) {
            loginResult.setTtVictory(assetUpdate.getTtVictory());
        }

        //修复天梯负场数据刷新
        if (assetUpdate.getTtFail() != null) {
            loginResult.setTtFail(assetUpdate.getTtFail());
        }
    }
}
